<template>
    <div class="stat-card">
      <div class="icon">
        <slot name="icon"></slot>
      </div>
      <div class="content">
        <p class="label">{{ label }}</p>
        <p class="value">{{ value }}</p>
      </div>
    </div>
  </template>
  
  <script lang="ts" setup>
  defineProps({
    label: {
      type: String,
      required: true,
    },
    value: {
      type: String,
      required: true,
    },
  });
  </script>
  
  <style scoped>
  .stat-card {
    background: #ffffff;
    width: 24%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .icon {
    font-size: 30px;
    line-height: 100px;
  }
  
  .content {
    text-align: center;
  }
  
  .label {
    color: #9097ad;
    line-height: 20px;
    margin-top: 25px;
  }
  
  .value {
    font-weight: 600;
    font-size: 23px;
    color: #000;
    line-height: 30px;
  }
  </style>